<template>
<div>
	<div class="header1">
	<img src="http://www.wtown.com/pc/images/site_banner_hotel.jpg" width="100%">
<div style="width: 1200px;margin: 0 auto;" class="clearfix">
	<h1>
	<div style="float: left;" @click="$router.back()">	
		<img src="http://www.wtown.com/pc/images/shopping_ic01.png" >
	酒店预订	
	<img src="http://www.wtown.com/pc/images/shopping_ic02.png" >
	</div>
	<div style="float: right;color: navajowhite;">
		<img src="http://www.wtown.com/pc/images/shopping_ic01.png" >
	票务预订	
	<img src="http://www.wtown.com/pc/images/shopping_ic02.png" >
	</div>
	</h1>
</div>		
</div>
<div class="main1">
<div class="sousuo" >
	
	<input type="date" value="2021-12-4">
	
<input class="clearfix" type="text" style="margin-left: 100px;height: 30px;" placeholder="请输入票务名称">
<button style="width: 100px;height: 30px;border: none;background-color: #a19063;color: white;">搜索</button>
</div>


<div class="hotel" v-for="(item,index) in piao" :key="item">
<div class="comment">
<div v-for="(item,index) in item.images.split(',')" >
<img :src="item" v-if="index==0" width="350px" height="189px" style="float:left ;">	
</div>
<ul class="names">
		<li style="font-size: 20px;color:#a19063 ;">
		{{item.name}}
		</li>
	<li style="margin-top: 15px;">
	开放时间:{{item.openingTime}}
		
	</li>	
	<li style="margin-top: 60px;">费用包含:{{item.intro}}</li>
</ul>
<p style="text-align: right;">
<span style="color: #a19063;font-size: 18px;text-align: right;">￥{{item.startPrice}}起</span>	
</p>
<p style="text-align: right;color: #a19063;font-size: 18px;">已售
{{item.salesNum}}笔	
</p>
	<button style="width: 122px;height: 36px;border: none;background-color: #a19063;color: white;margin: 0 auto;margin-left: 60px;margin-top: 100px;">已预定</button>
	
</div>
	
</div>
	
</div>		
</div>	
</template>

<script>
export default{
	data(){
		return{
		int:false,
		piao:[],
		}
	},
	created(){
	this.getHotel();	
	},
	mounted() {
		
	},
	methods:{
		getHotel(){
						fetch("/api/rms/v1/ticket/list",{
							method:"POST",
							headers:{
								"Content-Type": "application/json; charset=UTF-8"
							},
							body:`{"status":"opening","name":"","date": "2021-12-04"}`
						})
						.then(res=>res.json())
						.then(res=>{
	this.piao = res;
	
		})
						
	},
	}
}	
</script>

<style>
.header1{
	width: 100%;
	position: relative;
}
.header1 h1{
	position: absolute;
	bottom: 70px;
	color: white;
	width: 1200px;
}
.header1 h1 img{
	vertical-align: middle;
}
.main1{
	width: 1200px;
	margin: 0 auto;
}
.sousuo{
	background-color:#f4f5f6;
	padding: 23px 0 17px 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sousuo input{
	width: 150px;
	height: 30px;
	 outline: none;
	 border: none;
	 background-color: white;
}

.hotel{
	width: 1200px;
	margin: 0 auto;
}
.comment{
	overflow: hidden;
	border: 10px solid #f4f5f6;
	padding: 30px;
	padding-left: 20px;
}
.names{
	float: left;
	margin-left: 30px;
	width: 500px;
	padding-right: 50px;
	height: 189px;
	border-right: 1px solid #ece9e0;
}
.peitao{
margin-top: 10px;
}
.peitao .span{
	line-height: 24px;
	text-align: center;
	float: left;
	color: #333;
	border: 1px solid #ccc;
	border-radius: 5px;
	margin-bottom: 5px;
	padding:0px 14px;
	margin-right: 5px;
}

</style>
